import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SDominionMyResult
    
    export  class SDominionMyResult extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SDominionMyResult();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.coinNum);
            arg1.writeBool(this.win);
            arg1.writeInt(this.rank);
            arg1.writeInt(this.rewardItem);
            arg1.writeInt(this.killPlayer);
            arg1.writeInt(this.damage);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.coinNum = arg1.readInt();
            this.win = arg1.readBool();
            this.rank = arg1.readInt();
            this.rewardItem = arg1.readInt();
            this.killPlayer = arg1.readInt();
            this.damage = arg1.readInt();
            return;
        }

        public /* const */_type: int=2064;

        public /* var */coinNum: int;

        public /* var */win: Boolean;

        public /* var */rank: int;

        public /* var */rewardItem: int;

        public /* var */killPlayer: int;

        public /* var */damage: int;

        public static /* var */_regist: SDominionMyResult;
    }

            SDominionMyResult._regist = new SDominionMyResult(true);
        